package com.online_vote_system.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.online_vote_system.demo.vo.Competition;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CompetitionService extends IService<Competition> {

    List<Competition> getAll();
    Competition getOne(String comId);
    Competition getOneByType();
    void changeType(String type,String comId);
    void updateOne(String comId, String playerId_1, String playerId_2, String score1, String score2,String comName);
    void insertOne(String playerId_1,String playerId_2,String comName);

}
